<?php use_helper('I18N') ?>

<form class="ui-form" action="<?php echo url_for('@sf_guard_signin') ?>" method="post">


          
    <?php $routes = $sf_context->getRouting()->getRoutes() ?>
    <?php if (isset($routes['sf_guard_forgot_password'])): ?>
    <a href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo __('Forgot your password?', null, 'sf_guard') ?></a>
    <?php endif; ?>

    <?php if (isset($routes['sf_guard_register'])): ?>
    &nbsp; <a href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('Want to register?', null, 'sf_guard') ?></a>
    <?php endif; ?>
    <?php echo $form->renderHiddenFields() ?>
    <fieldset class="ui-widget ui-fieldset slide">

        <div class="ui-widget-header ui-form-legend ui-corner-large-top">
            <p class="ui-icon-16 ui-icon-link-add"></p>
            <legend class="ui-widget-title">
                <?php echo __('Login') ?>
            </legend>
        </div>

        <div class="ui-widget-content">

            <div class="ui-form-field">
                <?php echo $form['username']->renderLabel(null, array('class' => 'ui-label')) ?>
                <?php echo $form['username']->render(array('class' => 'ui-textfield')) ?>
                <p class="ui-input-description"><?php echo $form['username']->renderHelp() ?></p>
                <?php if ($form['username']->hasError()): ?>
                    <?php echo $form['username']->renderError() ?>
                <?php endif; ?>
            </div>
            <div class="ui-form-field">
                <?php echo $form['password']->renderLabel(null, array('class' => 'ui-label')) ?>
                <?php echo $form['password']->render(array('class' => 'ui-textfield')) ?>
                <p class="ui-input-description"><?php echo $form['password']->renderHelp() ?></p>
                <?php if ($form['password']->hasError()): ?>
                    <?php echo $form['password']->renderError() ?>
                <?php endif; ?>
            </div>
            <div class="ui-form-field">
                <?php echo $form['remember']->renderLabel(null, array('class' => 'ui-label')) ?>
                <?php echo $form['remember']->render(array('class' => 'ui-checkbox')) ?>
                <p class="ui-input-description"><?php echo $form['remember']->renderHelp() ?></p>
                <?php if ($form['remember']->hasError()): ?>
                    <?php echo $form['remember']->renderError() ?>
                <?php endif; ?>
            </div>
            <div class="ui-widget-header ui-form-footer ui-corner-large-bottom">
                <button class="ui-submit ui-button" value="<?php echo __('Signin', null, 'sf_guard') ?>"><?php echo __('Einloggen') ?></button>
            </div>
        </div>
        
    </fieldset>
    
</form>